package rjeutsky.database.jpa;

import org.hibernate.cfg.Configuration;

import rjeutsky.database.jpa.models.JPAPayment;
import rjeutsky.database.jpa.models.JPAPublication;
import rjeutsky.database.jpa.models.JPASubscription;
import rjeutsky.database.jpa.models.JPAUser;
import rjeutsky.database.jpa.models.JPAUserRole;

public class JPAConnector {
	public Configuration GetConfiguration() {
		Configuration config = new Configuration();
		config.addAnnotatedClass(JPAPayment.class);
		config.addAnnotatedClass(JPAPublication.class);
		config.addAnnotatedClass(JPASubscription.class);
		config.addAnnotatedClass(JPAUser.class);
		config.addAnnotatedClass(JPAUserRole.class);
		config.configure("hibernate.cfg.xml");
		return config;
	}
}
